package cn.edu.xust.service;


import cn.edu.xust.configuration.exception.Default200Exception;
import cn.edu.xust.entity.HotelEntity;
import cn.edu.xust.util.PageUtils;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;
import java.util.Map;

/**
 *
 *
 * @author ouguangji
 * @email sunny_ogj_mail@163.com
 * @date 2020-09-21 14:28:15
 */
public interface HotelService extends IService<HotelEntity> {

    PageUtils queryPage(Map<String, Object> params, List<Integer> hotelId);

    HotelEntity findByHotelId(Integer hotelId);

    List<HotelEntity> getAllHotel();

    List<HotelEntity> getByHotelGroupList(Integer item);


    HotelEntity getByPmsId(String pmshotelId);


    List<HotelEntity> getByGroupId(String groupid);


    HotelEntity getByHotelid(String hotelid);


    List<HotelEntity> getByHotelidList(String[] hotellists);


    List<HotelEntity> getByGroupIdList(String[] split);

    List<HotelEntity> getByProvinceList(String[] split);

    List<HotelEntity> getByCityList(String[] split);

    boolean updateEnv(String hotelid, String env_data);

    boolean updateAddress(String hotelid, String address);

    String getBigId();

    void saveWithValid(HotelEntity hotelEntity) throws Default200Exception;

    List<HotelEntity> getByHotelidList(List<Integer> hotelids);


    List<HotelEntity> getByPC(String pid, String cid);


    HotelEntity getByAppid(String appId);

}

